Release 10.1A: OpenEdge Data Management:
DataServer for ORACLE
CLOSED STORED-PROCEDURE statement
For a non-Progress stored procedure,
PROC-STATUSindicates that the procedure has completed execution and retrieves any return status. For asend–sql–statementstored procedure,CLOSESTORED–PROCEDUREcloses the SQL cursor used by the procedure, as shown:
procedure-nameThe name of the stored procedure that you want to close or the built-in procedure name,
send–sql-statement.integer–field= PROC–STATUSAssigns the return value from a stored procedure to the specified integer field or variable (
integer–field).WHERE PROC–HANDLE =integer–fieldAn integer field or variable whose value uniquely identifies the stored procedure that produces the results returned from the data source or the SQL cursor of a
send–sql–statementstored procedure.Consider these points concerning the
CLOSED STORED-PROCEDUREstatement:
- If you specified a
PROC–HANDLEwhen you ran a stored procedure, you must specify thePROC–HANDLEwhen you close the stored procedure.- If you do not specify a
PROC–HANDLE, theCLOSESTORED–PROCEDUREstatement closes the procedure if there is only one stored procedure running. If there is more than one stored procedure running, an error is returned.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |